#import <UIKit/UIKit.h>

/*===================================================================
 说明：
    区域管理
 ==================================================================*/
@interface FSRegion : NSObject

+ (void)refresh;

//根据城市ID获取对应的名称
+ (NSString *)regionWithCity:(NSUInteger)cityID;
+ (NSString *)regionWithCity:(NSUInteger)cityID joined:(NSString *)joined;

//根据经纬度坐标获取当前城市ID
+ (NSUInteger)cityForCoordinate:(CLLocationCoordinate2D)coordinate;

//根据城市ID获取对应的省国家ID
+ (void)regionWithCity:(NSUInteger)cityID province:(NSUInteger *)proivnce country:(NSUInteger *)country;

//根据城市ID获取对应的国省市的索引值
+ (void)indexWithCity:(NSUInteger)cityID country:(NSInteger *)country province:(NSInteger *)province city:(NSInteger *)city;

//下列输出数组为字典对象，其格式为 {@"id":x, @"name":@"xxx"}
+ (NSArray<NSDictionary *> *)countries;			//列出支持的国家
+ (NSArray<NSDictionary *> *)provincesForCountry:(NSUInteger)countryID;		//列出指定国家ID的省份
+ (NSArray<NSDictionary *> *)citiesForProvince:(NSUInteger)provinceID;		//列出指定省份ID的城市

@end
